﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using WPExtensions;

namespace WPExtensionsDemo.UITest
{
    public partial class AdvancedApplicationBarBindingUpdateOnPressButton : PhoneApplicationPage
    {
        public AdvancedApplicationBarBindingUpdateOnPressButton()
        {
            InitializeComponent();

            Loaded += new RoutedEventHandler(AdvancedApplicationBarBindingUpdateOnPressButton_Loaded);
        }

        void AdvancedApplicationBarBindingUpdateOnPressButton_Loaded(object sender, RoutedEventArgs e)
        {
            //var advancedApplicationBar = new AdvancedApplicationBar();
            
        }

        public ViewModelDemo ViewModel
        {
            get { return DataContext as ViewModelDemo; }
        }

        private void ApplicationBarIconButton_OnClick(object sender, EventArgs e)
        {
            MessageBox.Show(ViewModel.CustomText);
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show(ViewModel.CustomText);
        }
    }
}